import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
//导入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//导入axios
import axios from 'axios'
import qs from 'qs'
import store from './store';

//配置基础路径
axios.defaults.baseURL = 'http://localhost:8080'
const app = createApp(App)
//指定全局对象
app.config.globalProperties.$axios = axios
app.config.globalProperties.$qs = qs

app.use(store)
//使用element
app.use(ElementPlus)
app.use(router).mount('#app')
